package com.itheima.health.dao;


import com.github.pagehelper.Page;
import com.itheima.health.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDao {

    void insert(Setmeal setmeal);

    @Select("select id from setmeal where code =#{code}")
    Integer getId(String code);

    Page<Setmeal> Page(String queryString);

    @Select("select name from setmeal where id =#{setmealId}")
    String selectName(Integer setmealId);

    @Select("select name from setmeal")
    List<String> getNames();
}
